// 建立表关系
const Admin = require("./Admin")
const Message = require("./Message")
const Blog = require("./Blog")
const Class = require("./Class")

Admin.hasMany(Message)
Message.belongsTo(Admin)

Blog.belongsToMany(Class, { through: 'Link' });
Class.belongsToMany(Blog, { through: 'Link' });